package priv.books.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import lombok.Data;

/**
    * 订单表
    */
@Data
@TableName(value = "`order`")
public class Order {
    /**
     * 自增主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 订单编号
     */
    @TableField(value = "order_num")
    private String orderNum;

    /**
     * 订单价格
     */
    @TableField(value = "order_price")
    private BigDecimal orderPrice;

    /**
     * 创建时间
     */
    @TableField(value = "create_date")
    private String createDate;



    public static final String COL_ID = "id";

    public static final String COL_ORDER_NUM = "order_num";

    public static final String COL_ORDER_PRICE = "order_price";

    public static final String COL_CREATE_DATE = "create_date";
}